// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from '@/utils/request'

export function upload(file) {
  return request({
    url: 'orderImage/handleUploadImg',
    method: 'post',
    data:file,
    headers: {
      'Content-Type': 'multipart/form-data' }

  })


}

export function upClick(orderImage) {
  return request({
    url: 'orderImage/upClick',
    method: 'get',
    params:orderImage

  })

}


export function uploadPictures(files) {
  return request({
    url: 'orderImage/uploadPictures',
    method: 'post',
    data:files,
    headers: {
      'Content-Type': 'multipart/form-data' }

  })


}

export function upAttachment(file) {
  return request({
    url: 'orderDetail/upAttachment',
    method: 'post',
    data:file,
    headers: {
      'Content-Type': 'multipart/form-data' }

  })


}
